﻿#include "cashier.h"

#include <QDebug>

#include "apple.h"
#include "book.h"

Cashier::Cashier() : Visitor()
{

}

void Cashier::visit(Book *book)
{
    qDebug() << book->name() << " count: " << book->number();
}

void Cashier::visit(Apple *apple)
{
    qDebug() << apple->name() << " count: " << apple->number();
}
